<?php

header("Content-type: text/html; charset=utf-8");
include './function.php';
include './PathFinding/Dijkstra.php';



$start_time = microtime(true);
/*
 * 人出发点为5
 * 出口为9
 * 0是可以走
 * 1是路障不可能穿越
 */
//$PathFinding = new PathFinding(10, 10, 1, 1, 10, 10);
////添加人的出发点
//$PathFinding->AddObstacles(2, 3);
//$PathFinding->AddObstacles(5, 7);
////$PathFinding->AddObstacles(1, 4, 6);
////$PathFinding->AddObstacles(1, 5, 6);
////打印未走之前的迷宫
//$PathFinding->PrintMazeMatrix();
//
////走迷宫
//$PathFinding->SearchMazeExport();
//
////打印走过的迷宫
//$PathFinding->PrintMazeMatrix();









$end_time = microtime(true);
//pp('运行时间为' . (sprintf('%0.4f', $end_time - $start_time)) . '毫秒');
